﻿// -----------------------------------------------------------------------
// <copyright file=NguoiDungBusiness company="">
// TODO: dangppsoft@gmail.com
// </copyright>
// -----------------------------------------------------------------------
namespace ManagerClinic.Core.Business
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using ManagerClinic.Core.Common;
    using ManagerClinic.Core.DataAccess;

    public class NguoiDungBusiness
    {
        NguoiDungDataAccess objDa = null;

        public NguoiDungBusiness()
        {
            objDa = new NguoiDungDataAccess();
        }

        public bool InsertNguoiDung(NguoiDungEntity obj)
        {
            return objDa.InsertNguoiDung(obj);
        }

        public bool EditNguoiDung(NguoiDungEntity obj)
        {
            return objDa.EditNguoiDung(obj);
        }

        public bool DeleteNguoiDung(string userName)
        {
            return objDa.DeleteNguoiDung(userName);
        }

        public NguoiDungEntity GetNguoiDung(string userName)
        {
            return objDa.GetNguoiDung(userName);
        }

        public IList<NguoiDungEntity> GetNguoiDungList()
        {
            return objDa.GetNguoiDungList();
        }

    }
}